﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage/Default.master" AutoEventWireup="true"
    CodeFile="Mine.aspx.cs" Inherits="List_Mine" Title="添加影片到我的收藏" %>

<%@ Register Assembly="WFNetCtrl" Namespace="WFNetCtrl" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td>
                电影名称：
            </td>
            <td>
                <asp:TextBox ID="tbMovie" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                说明 ：
            </td>
            <td>
                <asp:TextBox ID="tbListRemark" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <%--<div style="width: 100%; height: 400px; overflow: auto">--%>
                <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" Width="100%"
                    PageSize="25" OnRowDataBound="gvList_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="选择" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30px">
                            <ItemTemplate>
                                <asp:CheckBox ID="cbSel" runat="server" />
                            </ItemTemplate>
                            <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                            <ItemStyle Width="30px" HorizontalAlign="Center"></ItemStyle>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="收藏">
                            <ItemTemplate>
                                <a href="../Movie/Browse.aspx?ID=<%# Eval("ID") %>" title='<%# Eval("Name") %>' target="_blank">
                                    <%# DataBinder.Eval(Container.DataItem, "Name")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="作者" DataField="UserID" />
                        <asp:BoundField HeaderText="创建时间" DataField="CreateTime" />
                        <asp:BoundField HeaderText="简介" DataField="Remark" />
                    </Columns>
                    <RowStyle HorizontalAlign="Center" BackColor="#EFF3FB" />
                    <EmptyDataTemplate>
                        <font color="red" style="font-size: large; color: red; text-decoration: underline;">
                            无符合条件的记录</font>
                    </EmptyDataTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <AlternatingRowStyle BackColor="White" />
                </asp:GridView>
                <%--</div>--%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <cc1:DefaultPager ID="pGrid" runat="server" Align="Right" OnClick="pGrid_OnClick">
                </cc1:DefaultPager>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <div align="center">
                    <asp:Button ID="btnAdd" runat="server" Text="添加到我的收藏" OnClick="btnAdd_Click"></asp:Button>
                    <asp:Button ID="btnALLList" runat="server" Text="我的全部收藏" 
                        onclick="btnALLList_Click"></asp:Button>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
